package com.zzyl.mapper;


import com.github.pagehelper.Page;
import com.zzyl.dto.UserDto;
import com.zzyl.entity.User;
import com.zzyl.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
* @author hesicheng
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2024-05-17 11:32:51
* @Entity com.zzyl.entity1.User
*/
@Mapper
public interface UserMapper {

    @Select("select * from sys_user where username = #{username}")
    UserVo selectByName(String username);
    Page<User> findUserVoPageResponse(UserDto userDto);

    void createUser(User user);

    void isEnable(@Param("id") Long id,@Param("status") String status);

    void deleteUserById(String userIds);

    void resetPasswords(@Param("userId") Long userId,@Param("password") String password);

    void updateUser(User user);

    void look(User user);

    User looks(String userIds);
}




